<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
	<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>

<script type="text/javascript" src="/resource/js/jquery-3.2.1/jquery.js"></script>
<link href="/resource/bootstrap-4.3.1/css/bootstrap.css" rel="stylesheet"> 
<script type="text/javascript" src="/resource/bootstrap-4.3.1/js/bootstrap.js"></script>

<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	
	<div class="container">
	<a href="toadd">添加</a>
		<table class="table"> 
  <tr>
    <th>编号</th>
    <th>学生名称</th>
    <th>日期</th>
    <th>选修课</th>
    <th>省</th>
    <th>市</th>
    <th>县</th>
    <th colspan="2">操作</th>
  </tr>
  <c:forEach items="${list }" var="a">
  <tr>
    <td>${a.id}</td>
    <td>${a.name }</td>
    <td>
    <fmt:formatDate value="${a.enterDate }" pattern="yyyy-MM-dd"/>
    </td>
    <td>
    <c:forEach items="${a.subject }" var="b">
    ${b.name};
    </c:forEach>
    </td>
    <td>${a.province.name }</td>
    <td>${a.city.name }</td>
    <td>${a.country.name }</td>

    <td>
    	<a>详情</a>
    	<a href="toupdate?id=${a.id }">修改</a>
    </td>

  </tr>
  </c:forEach>
</table>
	</div>

</body>
</html>